import request from '@/utils/request'

export const getAllUsers = () => {
  return request({
    url: '/admin/user',
    method: 'GET'
  })
}

export const userAdd = (user) => {
  return request({
    url: '/admin/user',
    method: 'POST',
    data: user
  })
}
